﻿using System;
using System.Collections.Generic;
using System.Dynamic;

namespace Rejs.Example
{
    public class RejsData : IRejsDataProvider
    {
        #region IRejsDataProvider Members

        public dynamic Xyzzy()
        {
            var x = new ExpandoObject() as IDictionary<string, Object>;
            x["Frax"] = "Im from another assembly";
            x["Frax2"] = "More data!";

            return x;

            // Or...
            // dynamic y = new ExpandoObject();
            // y.Frax = 12;
            // y.Frax2 = "Yes!";
            // Or...
            // (y as IDictionary<String,Object>).Add("Frax3", "Something something");
        }

        #endregion
    }
}